package cn.lyx.xiaohoshu.auth.domain.mapper;

import cn.lyx.xiaohoshu.auth.domain.dataobject.PermissionDO;

import java.util.List;

/**
* @author mo1011
* @description 针对表【t_permission(权限表)】的数据库操作Mapper
* @createDate 2025-04-21 21:03:26
* @Entity cn.lyx.xiaohoshu.auth.domain.dataobject.PermissionDODO
*/
public interface PermissionDOMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PermissionDO record);

    int insertSelective(PermissionDO record);

    PermissionDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PermissionDO record);

    int updateByPrimaryKey(PermissionDO record);

    // 查询已启用的权限
    List<PermissionDO> selectEnabledList();

}
